version 7.1.56

let s:cpo_save=&cpo
set cpo&vim
nmap gx <Plug>NetrwBrowseX
nnoremap <silent> <Plug>NetrwBrowseX :call netrw#NetBrowseX(expand(<cWORD>"),0)
let &cpo=s:cpo_save
unlet s:cpo_save
set background=dark
set backspace=indent,eol,start
set fileencodings=ucs-bom,utf-8,default,latin1
set helplang=en
set ruler
set number
set termencoding=utf-8
syntax on


" close backup
set nobackup
" show line number
set nu
" not correspond to vi
set nocp
" show line column percentage info
set ru
" show highlight word when do searching
set hls

set ignorecase

" set font
set guifont=Courier\ 10\ Pitch\ 10
" indent 4 empty
set sw=4
" change tab to 4 empty
set et
" double click paste
map <MiddleMouse> <Nop>
imap <MiddleMouse> <Nop>

" ==========above is copy from others==========
"set cindent
"set smartindent
"set tab to be 2 spaces
set shiftwidth=4
set tabstop=4
set softtabstop=4
set expandtab
"auto indent
"set ai!
"set fold method
set foldmethod=indent
"set auto complete
set complete=.,w,b,u,t,i
"set comment format
set comments=sl:/*,mb:**,elx:*
" creates a normal mode mapping for the <F8> key to toggle the taglist window
"nnoremap <silent> <F8> :TlistToggle<CR>

"ctags
let g:ctags_statusline=1
let g:ctags_path="~/.vim/plugin"
let g:ctags_title=1
let g:ctags_regenerate=0

"tab 
let g:SuperTabRetainCompletionType=2
let g:SuperTabDefaultCompletionType="<C-P>"

"Taglist width
let Tlist_WinWidth = 40

"Taglist Auto Open
let g:Tlist_Auto_Open=1

"if taglist is the last window, auto exit
let Tlist_Exit_OnlyWindow=1

"display file name at the bottom
set statusline+=%f

"set color scheme
colorscheme desert

"for ruby on rails
set path+=/media/Data/Study/Database\ CS273/project/proj273/app/**
set path+=/media/Data/Study/Database\ CS273/project/proj273/lib/**
set suffixesadd=.rb
"set includeexpr+=substitute(v:fname, 's$','','g')

"java ralated
let java_highlight_all=1
let jave_highlight_functions="style"
let java_allow_cpp_keywords=1
setlocal omnifunc=javacomplete
setlocal completefunc=javacomplete
